{"ast":null,"code":"import classNames from 'classnames';\nimport * as React from 'react';\nconst Steps = props => {\n  const {\n    size,\n    steps,\n    percent = 0,\n    strokeWidth = 8,\n    strokeColor,\n    trailColor = null,\n    prefixCls,\n    children\n  } = props;\n  const current = Math.round(steps * (percent / 100));\n  const stepWidth = size === 'small' ? 2 : 14;\n  const styledSteps = new Array(steps);\n  for (let i = 0; i < steps; i++) {\n    const color = Array.isArray(strokeColor) ? strokeColor[i] : strokeColor;\n    styledSteps[i] = /*#__PURE__*/React.createElement(\"div\", {\n      key: i,\n      className: classNames(`${prefixCls}-steps-item`, {\n        [`${prefixCls}-steps-item-active`]: i <= current - 1\n      }),\n      style: {\n        backgroundColor: i <= current - 1 ? color : trailColor,\n        width: stepWidth,\n        height: strokeWidth\n      }\n    });\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-steps-outer`\n  }, styledSteps, children);\n};\nexport default Steps;","map":{"version":3,"names":["classNames","React","Steps","props","size","steps","percent","strokeWidth","strokeColor","trailColor","prefixCls","children","current","Math","round","stepWidth","styledSteps","Array","i","color","isArray","createElement","key","className","style","backgroundColor","width","height"],"sources":["/data/messenger.client/node_modules/antd/es/progress/Steps.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nconst Steps = props => {\n  const {\n    size,\n    steps,\n    percent = 0,\n    strokeWidth = 8,\n    strokeColor,\n    trailColor = null,\n    prefixCls,\n    children\n  } = props;\n  const current = Math.round(steps * (percent / 100));\n  const stepWidth = size === 'small' ? 2 : 14;\n  const styledSteps = new Array(steps);\n  for (let i = 0; i < steps; i++) {\n    const color = Array.isArray(strokeColor) ? strokeColor[i] : strokeColor;\n    styledSteps[i] = /*#__PURE__*/React.createElement(\"div\", {\n      key: i,\n      className: classNames(`${prefixCls}-steps-item`, {\n        [`${prefixCls}-steps-item-active`]: i <= current - 1\n      }),\n      style: {\n        backgroundColor: i <= current - 1 ? color : trailColor,\n        width: stepWidth,\n        height: strokeWidth\n      }\n    });\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-steps-outer`\n  }, styledSteps, children);\n};\nexport default Steps;"],"mappings":"AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,MAAMC,KAAK,GAAGC,KAAK,IAAI;EACrB,MAAM;IACJC,IAAI;IACJC,KAAK;IACLC,OAAO,GAAG,CAAC;IACXC,WAAW,GAAG,CAAC;IACfC,WAAW;IACXC,UAAU,GAAG,IAAI;IACjBC,SAAS;IACTC;EACF,CAAC,GAAGR,KAAK;EACT,MAAMS,OAAO,GAAGC,IAAI,CAACC,KAAK,CAACT,KAAK,IAAIC,OAAO,GAAG,GAAG,CAAC,CAAC;EACnD,MAAMS,SAAS,GAAGX,IAAI,KAAK,OAAO,GAAG,CAAC,GAAG,EAAE;EAC3C,MAAMY,WAAW,GAAG,IAAIC,KAAK,CAACZ,KAAK,CAAC;EACpC,KAAK,IAAIa,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGb,KAAK,EAAEa,CAAC,EAAE,EAAE;IAC9B,MAAMC,KAAK,GAAGF,KAAK,CAACG,OAAO,CAACZ,WAAW,CAAC,GAAGA,WAAW,CAACU,CAAC,CAAC,GAAGV,WAAW;IACvEQ,WAAW,CAACE,CAAC,CAAC,GAAG,aAAajB,KAAK,CAACoB,aAAa,CAAC,KAAK,EAAE;MACvDC,GAAG,EAAEJ,CAAC;MACNK,SAAS,EAAEvB,UAAU,CAAE,GAAEU,SAAU,aAAY,EAAE;QAC/C,CAAE,GAAEA,SAAU,oBAAmB,GAAGQ,CAAC,IAAIN,OAAO,GAAG;MACrD,CAAC,CAAC;MACFY,KAAK,EAAE;QACLC,eAAe,EAAEP,CAAC,IAAIN,OAAO,GAAG,CAAC,GAAGO,KAAK,GAAGV,UAAU;QACtDiB,KAAK,EAAEX,SAAS;QAChBY,MAAM,EAAEpB;MACV;IACF,CAAC,CAAC;EACJ;EACA,OAAO,aAAaN,KAAK,CAACoB,aAAa,CAAC,KAAK,EAAE;IAC7CE,SAAS,EAAG,GAAEb,SAAU;EAC1B,CAAC,EAAEM,WAAW,EAAEL,QAAQ,CAAC;AAC3B,CAAC;AACD,eAAeT,KAAK"},"metadata":{},"sourceType":"module"}